package com.yazi.mxz.behavior.dao.impl;

import org.hibernate.Criteria;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;

import com.myframework.smhj.hibernate.Searching;
import com.myframework.smhj.hibernate.Page;
import com.myframework.smhj.hibernate.dao.BasicDao;
import com.yazi.mxz.behavior.dao.StoreDao;
import com.yazi.mxz.behavior.entity.beans.Store;

@Repository("storeDao")
public class StoreDaoImpl extends BasicDao<Store> implements StoreDao {


	public StoreDaoImpl() {
		super(Store.class);
	}

	@Override
	public Criteria getExample(Store store, String searchWord) {
		Criteria c = createCriteria(Store.class);
		
		return c;
	}
	
	@Override
	public Page<Store> listByGtUpdateTime(long updateTime, Searching si) {
		Criteria c = createCriteria(Store.class);
		c.add(Restrictions.gt("updateTime", updateTime));
		return list(c, si);
	}

}
